class Biology{

}
class Animal extends Biology{

}
class BirdsAndBirds extends Animal{

}
class Bird extends BirdsAndBirds{

}
class Message1<T>{
    private T message;
    public T getMessage(){
        return message;
    }

    public void setMessage(T message) {
        this.message = message;
    }
}
public class TestDemo1 {
    public static void main(String[] args) {
        Message<Animal>message=new Message<>();
        message.setMessage(new Animal());
        fun(message);
        Message<Biology>message1=new Message<>();
        message1.setMessage(new Biology());
        fun(message1);

        int i=10;
        Integer ii=i;
        Integer lj=(Integer)i;
        int j=ii;
        int k=(int)i;




        Integer li=Integer.valueOf(i);
        Integer ij=new Integer(i);

        int nj=li.intValue();
    }
    public static void fun(Message<?super Animal>temp){
        temp.setMessage(new Bird());
        temp.setMessage(new Animal());

        System.out.println(temp.getMessage());
    }
}
